@extends('layout.index')
@section('title', '添加用户')
@section('content')
	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>用户添加</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form action="{{url('admin/user/insert')}}" class="mws-form" method='post'>
                    		@if (count($errors) > 0)
                    		    <div class="mws-form-message error">
                    		    添加失败
                    		        <ul>
                    		            @foreach ($errors->all() as $error)
                    		                <li>{{ $error }}</li>
                    		            @endforeach
                    		        </ul>
                    		    </div>
                    		@endif
                    		<div class="mws-form-inline">
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">帐号</label>
                    				<div class="mws-form-item">
                    					<input type="text" class="small" name='username'>
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">密码</label>
                    				<div class="mws-form-item">
                    					<input type="password" class="small" name='password'>
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">确认密码</label>
                    				<div class="mws-form-item">
                    					<input type="password" class="small" name='repassword'>
                    				</div>
                    			</div>
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">邮箱</label>
                    				<div class="mws-form-item">
                    					<input type="mail" class="small" name='email'>
										{{csrf_field()}}
                    				</div>
                    			</div>
                    		</div>
                    		<div class="mws-button-row">
                    			<input type="submit" class="btn btn-danger" value="提交">
                    			<input type="reset" class="btn " value="重置">
                    		</div>
                    	</form>
                    </div>    	
    </div>
@endsection